var screenAnimateElements={
	".screen-1" :[
	".screen-1__title",
	".screen-1__phone",
	".screen-1__shadow"
	],
	".screen-2" :[
	".screen-2__title",
	".screen-2__phone",
	".screen-2__Subtitle"
	],
	".screen-3" :[
	".screen-3__title",
	".screen-3__phone",
	".screen-3__Subtitle",
	".screen-3__features"
	],
	".screen-4" :[
	".screen-4__title",
	".screen-4__Subtitle",
	".screen-4__features__item-1",
	".screen-4__features__item-2",
	".screen-4__features__item-3",
	".screen-4__features__item-4",
	
	],
	".screen-5" :[
	".screen-5__title",
	
	".screen-5__Subtitle"
	],
};
function setScreenAnimate(screenCls){
	var screen=document.querySelector(screenCls);//获取当前屏幕元素
	var animateElement=screenAnimateElements[screenCls];// 获取需要设置的动画元素
	var isAnimate=false;
	var isAnimateDone=false;
	screen.onclick=function(){
		if(isAnimate === false){
			for(var i=0;i<animateElement.length;i++){
				var element=document.querySelector(animateElement[i]);
				var baseCls=element.getAttribute("class");
				element.setAttribute("class",baseCls+" "+animateElement[i].substr(1)+"_animate_init")
				
		 }
			isAnimate=true;
			return;
	  }
		if(isAnimateDone ===false){
			for(var i=0;i<animateElement.length;i++){
				var element=document.querySelector(animateElement[i]);
				var baseCls=element.getAttribute("class");
				element.setAttribute("class",baseCls.replace("_animate_init","_animate_done"))
		}
			isAnimateDone=true;
			return;
   }
		if(isAnimateDone ===true){
			for(var i=0;i<animateElement.length;i++){
				var element=document.querySelector(animateElement[i]);
				var baseCls=element.getAttribute("class");
				element.setAttribute("class",baseCls.replace("_animate_done","_animate_init"))
		}
			isAnimateDone=false;
			return;
}
	}
}
setScreenAnimate(".screen-1")
setScreenAnimate(".screen-2")
setScreenAnimate(".screen-3")
setScreenAnimate(".screen-4")
setScreenAnimate(".screen-5")